<template>
  <div>
    <div v-for="item of details">
      {{item.id}}
      {{item.title}}
    </div>
  </div>
</template>

<script>
  export default{
    name: 'MallPAge',
    data  (){
      return  {
            id:this.$route.params.id,
            details:{}
      }
    },
   created()
   {
    // this.id = this.$route.params.id
    // 写写写
   this.$ajax.get("/static/maoo/detall.json",{
     params:{
       id: this.id
     }
   }).then(res=>{
     this.details= res.data;
   })
   }
}

</script>

<style>
</style>
